Repository navigation
A phone never loads the voice model or asks for the graphics card - #45
Merged
Merged
Conversation
On a phone or a tablet a voiceover is said by the device's own voice, the GPU voice is not offered and the voice dialog lists only This device. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSgEmxT6hSLKhKZ1K1F
✅ Deploy Preview for ubiquitous-smakager-593fec ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Resolves the conflict with the server voice, offline mode and the wiki MP3s. On a phone or tablet (light(): isMobile() or touch only) Offline and the GPU voice are never offered and the model is never fetched; the voice there is the server's, the view's own MP3, else the device's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MCuMSfh5iiSDV6sNjkseQE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
On a phone or a tablet (
light()insite/voice.js: a narrow screen, or one worked by touch alone) the page no longer loads the voice model. A voiceover is said by the device's own voice, whichever voice the timeline names. The graphics card is never asked for there, the GPU voice is not offered, the voice dialog lists only "This device" with a line that says why, and a video exported on a phone has no voiceover.Why
The page was reported crashing on a phone. The 92 MB voice model running in a worker, and the request for a high-performance graphics adapter at page start, are the heaviest things the page did there, and neither is needed: the device's own voice costs nothing. The crash itself was not reproduced here, so this removes the likeliest causes rather than a proven one.
Kind
site/)Related issue, if any: none (asked for directly by the maintainer)
Sources
Screenshots
Nothing changes on a wide screen. On a phone the only visible change is the voice dialog, which lists one voice; no screenshot was taken.
Local link to see it, such as
/<owner>/<id>or#<entry-id>:/wiki/dinosaursChecklist
node scripts/build.mjs --checkprints0 errorsnode --testpassesidof an existing entry or viewLICENSE(MIT for code, CC BY-NC-SA 4.0 for content)Checked with an emulated phone (390 px, touch): pressing play on a timeline with a voiceover asks for no model, where the wide page does. Not checked on a real phone.
Generated by Claude Code